{% extends "base.html" %}
{% load staticfiles %}

{% block title %}首页{% endblock %}
{% block headcss %}
	<link rel="stylesheet" href="{% static 'framework/inspinia/css/font-awesome.css' %}">
{% endblock %}

{% block content %}
	<div class="row wrapper border-bottom white-bg page-heading" style="margin-bottom:20px;">

		<div class="col-lg-12">
			<div class="row" style="padding-top:20px;">
				<div>
					{% if user.staff.head_img %}<a href="{% url 'staff_detail_staff' user.staff.id %}"><img class="img-circle pull-left"  src="{{ user.staff.head_img.url }}" style="width:70px;margin-left: 10px;"></a>{% endif %}

					<h2 style=" margin-top:8px;  padding-left:20px;" class="pull-left">欢迎登录！
						<br>
						<small>{{ user.staff.name }}，{{ user.staff.position_name }}</small>
					</h2>
				</div>


			</div>
		</div>
	</div>

	<!--两栏式--->
	<div class="row">
		<div class="col-lg-12">
			<div class="ibox float-e-margins">
				<div class="ibox-title"><h5>公司公告</h5></div>

				<div class="ibox-content">
					{% load pagination_tags %}
{#					{% autopaginate announcement_list 10 %}#}
{##}
{#					<div class="list-group">#}
{#						{% for announcement in announcement_list %}#}
{#						<a  href="{% url 'announcement_detail_announcement' announcement.id  %}" class="list-group-item">#}
{#							<h3 class="list-group-item-heading">{{ announcement.title }}#}
{#								<small>{{ announcement.create_time|date:"Y-m-d" }}</small>#}
{#								{% if announcement.is_new <= 3 %}#}
{#									<span class="label label-info">NEW</span>#}
{#								{% endif %}#}
{#							</h3>#}
{##}
{#							<p class="list-group-item-text">#}
{#								{{ announcement.content|striptags|cut:"&nbsp;"|truncatewords:200|safe }}#}
{#							</p>#}
{#						</a>#}
{#						{% endfor %}#}
					</div>

					{% paginate %}
				</div>
			</div>
		</div>
	</div>
	<!--两栏式end--->
{% endblock %}
{% block headjs %}


{% endblock %}


{% block footjs %}
	<script type="text/javascript">

		function clean_get_param(the_form) {
			$(':input[value=""]').attr('name', '');
			return true;
		}

	</script>

{% endblock %}

